package com.ljx.thread.thread01;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/31 15:17
 * @Version 1.0
 */
public class BoyGirlThreadTest {
	public static void main(String[] args) {
		Card card = new Card();
		BoyThread boyThread = new BoyThread(card);
		GirlThread girlThread = new GirlThread(card);
		Thread thread1 = new Thread(boyThread,"男孩");
		Thread thread2 = new Thread(girlThread,"女孩");
		thread2.start();
		thread1.start();

	}
}
